package com.cn.learn.jpa.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;
import java.sql.Timestamp;

/**
 * @ClassName User
 * @Description 用户实体
 * @Author JiJiang
 * @Date 2022/9/14 14:57
 * @Version 1.0
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    @TableId(value="id",type= IdType.AUTO)
    private Integer id;
    private String name;
//    @TableField(fill = FieldFill.INSERT)

    @TableField("birth_date")
    private Timestamp birthDate;

}
